<template>
	<view :style="{height:statusBarHeight + 'rpx', backgroundColor:bgColor}">

	</view>
</template>

<script>
	export default {
		name: "statusBar",
		data() {
			return {
				statusBarHeight: 0
			};
		},
		mounted() {
			this.statusBarHeight = getApp().globalData.statusBarHeight
		},
		props:{
			bgColor: {
				type: String,
				default: 'transparent'
			}
		}
	}
</script>

<style lang="scss">

</style>